#ifndef CALCIUM_CORRECTION_FORMULA_H
#define CALCIUM_CORRECTION_FORMULA_H
#include "abstractformula.h"

class Calcium_Correction_Formula : public AbstractFormula
{
public:
    Calcium_Correction_Formula()
        :AbstractFormula(tr("Calcium Correction")){}

    /*!
    *  \brief Calcium correction
    *  Return calcium corrected by albumine
    *  \param serum calcium in g/l
    *  \param serum albumin in g/l
    */

    double result(double calcium , double albumin)
    {
        return (0.8 * (4 - albumin)) + calcium;
    }
};
#endif // CALCIUM_CORRECTION_FORMULA_H
